/** 
 * api接口统一管理
 */
import Vue from 'vue'
import http from './index.js';
const api = {
    list: params => http.get('/coupon/customerFindAllCoupon', params), //优惠券列表
    myList: params => http.post('/coupon/getMyCoupons', params), //获取我的优惠券
    myInfo: params => http.get('/coupon/findCouponsCustomerInfo', params), //获取我的优惠券详情
    info: params => http.get('/coupon/findCouponInfo', params), //查看优惠券详情
    share: params => http.get('/coupon/couponsShare', params), //优惠券分享
    merchant: params => http.get('/storeCommonUse/getStoreMerchant', params), //获取门店信息
    getCoupons: params => http.get('/coupon/getCoupons', params), //优惠券领取
    getCode: params => http.get('/smsController/getVerificationCode', params), //获取验证码
    bind: params => http.get('/smsController/smsValidate', params), //绑定手机号
    getCodeImg: params => http.get('/coupon/getCode', params), //获取详情页二维码图片
    getVipList: params => http.get('/coupon/getCouponSearchInfo', params), //获取会员卡名称分类
    getSDK: params => http.get('/Message/getJsSdkConfig', params), //获取会员卡名称分类
    getRegion: params => http.get('/coupon/getCouponsMerchantsRegion', params), //获取用户有优惠券的区域
}
export default api